﻿@{
    ViewBag.Title = "下属企业";
    Layout = "~/Views/Shared/_Master.cshtml";
  
}
@using Models.WebSite_HaiSheng
@model List<ChildCompany>
<script type="text/javascript">
    $(document).ready(function () {
        $('#banner').attr('src', '/images/gkbanner.jpg');
    });
</script>
<div class="sloed01 left">
    <div align="center">
        <img src="/images/jj3.jpg" width="185" height="57" /></div>
    <div class="fwmt">
        <ul>
            <li><a href=@Url.Action("Company_AboutUs", "Front")>企业概况</a></li>
            <li><a href=@Url.Action("Company_Leaders", "Front")>公司领导层</a></li>
            <li><a href=@Url.Action("Company_Organization", "Front")>组织机构</a></li>
            <li><a href=@Url.Action("Company_ChildrenCompanies", "Front")>下属企业</a></li>
        </ul>
    </div>
</div>
<div class="sloed02 right">
    <div class="ftoyt">
        <h3>
            下属企业 AFFILATED ENTERPRISES</h3>
    </div>
    <div class="texteb">
        您当前的位置：首页 > 综合新闻 > <span>下属企业</span></div>
    <div class="abuout">
       @* @{
            foreach(var m in Model)
            {
                <p><b>@m.CompanyName</b></p>
                <p>@m.CompanyDescription</p>
            }
         }
*@
        
            @{
                var items = CH.GetAllData<ChildCompany>();
                int CurrentPage = ViewBag.CurrentPage == null ? 1 : (int)ViewBag.CurrentPage;
                int Size = 3;
                var count = items.Count % Size == 0 ? items.Count / Size : (items.Count / Size + 1);
                items = items.FindAll(msg => (items.IndexOf(msg) >= (CurrentPage - 1) * Size) && (items.IndexOf(msg) + 1 <= (CurrentPage) * Size));

                foreach (var m in items)
                {
                     <p><b>@m.CompanyName</b></p>
                     <p>@m.CompanyDescription</p>
                }
            }
        
        @Html.SimplePager(ViewBag.current == null ? 1 : (int)ViewBag.current, count, "/Front/Company_ChildrenCompanies/?pageid={0}", "pager")
    </div>
</div>
